<!--#include file="common/header.html"-->
<body>
    <div class="container-fluid larry-wrapper">
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12">
                <!--头部搜索-->
                <section class="panel panel-padding">
                    <form class="layui-form" action="/education/admin/feedback">
                        <div class="layui-form">
                            <div class="layui-inline">
                                <div class="layui-input-inline">
                                    <input class="layui-input" name="_query.keyword" placeholder="关键字">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <button lay-submit class="layui-btn" lay-filter="search" id="search">查找</button>
                            </div>
                        </div>
                    </form>
                </section>

                <!--列表-->
                <section class="panel panel-padding">

                    <div class="group-button">
                        <!--<button class="layui-btn layui-btn-small modal-catch"
                                data-params='{"content":".add-subcat", "title":"添加","type":"1", "area":"600px,580px", "maxmin":"true"}'>
                            <i class="iconfont">&#xe649;</i> 添加
                        </button>-->
                        <button class="layui-btn layui-btn-small layui-btn-danger ajax-all" data-name="checkbox" data-params='{"url": "/education/admin/feedback/delete"}'>
                            <i class="iconfont">&#xe626;</i> 删除
                        </button>
                    </div>
                    <div id="list" class="layui-form"></div>

                    <div class="text-right" id="page"></div>
                </section>
            </div>
        </div>
    </div>

    <script id="list-tpl" type="text/html"
            data-params='{"url":"/education/admin/feedback","dataName":"feedbackData","pageid":"#page", "method":"post", "data":"", "async":false}'>
        <table id="example" class="layui-table lay-even" data-name="feedbackData" data-tplid="list-tpl">
            <thead>
            <tr>
                <th width="30"><input type="checkbox" id="checkall" data-name="checkbox" lay-filter="check"
                                      lay-skin="primary"></th>
                <th>序号</th>
                <th>反馈内容</th>
                <th>反馈人</th>
                <th>联系电话</th>
                <th>反馈时间</th>
                <!--<th width="200">图片</th>-->
            </tr>
            </thead>
            <tbody>
            {{# layui.each(d.list, function(index, item){ }}
            <tr>
                <td><input type="checkbox" name="checkbox" value="{{ item.id}}" lay-skin="primary"></td>
                <!-- <td>{{# if(String(item.numbers).indexOf('news-type') > 0){ }} 新闻类别
                     {{#  } else if(String(item.numbers).indexOf('question-type') > 0){  }} 咨询类别{{#  } }}</td>-->
                <td>{{ index+1 }}</td>
                <td>{{ item.content }}</td>
                <td>{{ item.username ||'' }}</td>
                <td>{{ item.mobile ||'' }}</td>
                <td>{{ item.create_time ||''}}</td>
                <!--<td>
                    {{# if(item.img){ }}
                    <div class="layer-photos-demo">
                    {{# layui.each(item.img.split(','), function(i, n){ }}
                        <a href="#"> <img layer-src="/education{{ n }}"  src="/education{{ n }}"
                                        style="height:60px;display: {{# if(i != 0){ }} none; {{# } }}"  alt="图片"></a>
                    {{# }); }}
                    </div>
                    {{#  } }}
                </td>-->
            </tr>
            {{# }); }}
            </tbody>

        </table>
    </script>

</body>
<script src="../js/layui/layui.js"></script>
<!--#include file="common/version.html"-->
<script>
    layui.define(['jquery', 'dtable', 'jqdate', 'jqform', 'upload'], function(exports) {
        var $ = layui.jquery,
                list = layui.dtable,
                ajax = layui.ajax,
                laydate = layui.laydate,
                form = layui.jqform,
                oneList = new list();
        oneList.init('list-tpl');
        layui.use('layer', function(){
            var layer = layui.layer;
            layer.photos({
                photos: '.layer-photos-demo'
                ,anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
            });
        });

        exports('feedback', {});
    });



</script>

</html>